/**
 * Created by hms on 2020-11-02.
 */
import { ROAST_CONFIG } from '../config.js';

export default{
    getUserList:function(data){
		let timestamp=Date.parse(new Date());
		data.random_id=timestamp;
        return axios.get(ROAST_CONFIG.API_URL+'/userlist',{ params : data});
    },
    editUser:function(data){
        return axios.post(ROAST_CONFIG.API_URL+'/edituser',qs.stringify(data),{
            headers: {'Content-Type': 'application/x-www-form-urlencoded'}
        });
    },
    getUserInfo:function(data){
        return axios.get(ROAST_CONFIG.API_URL+'/userinfo',{
            params:data
        });
    },
    delUser:function(data){
        return axios.get(ROAST_CONFIG.API_URL+'/deluser',{
            params:data
        });
    }
}
